package com.lune.job.utils;

import com.lune.job.vo.UserData;

/**
 * 本地线程存储token的
 **/
public class UserThreadLocal {

    //存储本地线程的变量
    private static ThreadLocal<String> userThreadLocal = new ThreadLocal<>();

    public static void set(String token) {
        userThreadLocal.set(token);
    }

    public static String get() {
        String token = userThreadLocal.get();
        return token;
    }


    public static void remove() {
        userThreadLocal.remove();
    }
}
